<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ page import="cn.wang.heng.make.*"  %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'myshop.jsp' starting page</title>
    
	

  </head>
  
  <body>
  <%
  	GoodsSingle user = (GoodsSingle)session.getAttribute("single1");
  	String shopname=user.getName();
  	float nowprice=user.getPrice();
  	int id=user.getId();
  	String  num1 = request.getParameter("num");
  	
  	int num=Integer.parseInt(num1);
  //	int  num=Integer.parseInt(num);
  //	 int num=request.getParameter("num1");
   %>
    
    <%
    		//String id1=null;
    		//String num1="1";
    		HttpSession session1= request.getSession();
			Object goodslist = null;
			session1.setAttribute("goodslist", goodslist);
			
			response.setContentType("text/html");
			//PrintWriter out = response.getWriter();
			//String path = request.getContextPath();
			
			//out.println(" <script language='javascript'>alert('aaa');</script>     ");
			
			//id1=request.getParameter("id");
			
		
			
 		//	int id=Integer.parseInt(id1);
//			num1=request.getParameter("num11");
//			int num=Integer.parseInt(num1);
//			float nowprice=Float.parseFloat(request.getParameter("nowprice"));
//			String shopname=request.getParameter("shopname");
			
//			ArrayList buylist = new ArrayList();
//			GoodsSingle single = new GoodsSingle();
//			
//			single.setId(id);
//			single.setName(shopname);
			//out.println(" <script language='javascript'>alert('aaa');</script>     ");
//			single.setNum(num);
//			single.setPrice(nowprice);
//			session1.setAttribute("single", single);
//			buylist.add(single);
			
			//response.getRequestDispatch("myshopcar.jsp").forward(request,response);
//			response.sendRedirect("/commerce/WebRoot/myshopcar.jsp");  

out.print(num1);
	out.print(id);
			
			response.sendRedirect("/myshopcar.jsp");
//			//ArrayList buylist=(ArrayList)session.getAttribute("buylist");



   	%>
    <script language='javascript'>alert('aaa');</script>
  </body>
</html>
